package metier.entities;

import javax.persistence.DiscriminatorColumn;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Inheritance;
import javax.persistence.InheritanceType;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;



@Entity
@Inheritance(strategy=InheritanceType.SINGLE_TABLE)
@DiscriminatorColumn(name="Type_Strategie")
public class StrategiePrix {
	
   	 @Id
	 @GeneratedValue(strategy=GenerationType.IDENTITY)
      private Integer IdStaretegie;
      
      //1->private shipper,2->professional shippers,3->private carriers,4->professional carrier,0 pour permanant users
      private Integer userType;
      
      
      @ManyToOne
      @JoinColumn(name="idDevise")
      private Devise devise;
      
      
      private boolean Statut;
	public Integer getIdStaretegie() {
		return IdStaretegie;
	}
	public void setIdStaretegie(Integer idStaretegie) {
		IdStaretegie = idStaretegie;
	}
	public Integer getUserType() {
		return userType;
	}
	public void setUserType(Integer userType) {
		this.userType = userType;
	}
	public Devise getDevise() {
		return devise;
	}
	public void setDevise(Devise devise) {
		this.devise = devise;
	}
	public boolean isStatut() {
		return Statut;
	}
	public void setStatut(boolean statut) {
		Statut = statut;
	}
	public StrategiePrix() {
		super();
		// TODO Auto-generated constructor stub
	}
	public StrategiePrix(Integer userType, Devise devise, boolean statut) {
		super();
		this.userType = userType;
		this.devise = devise;
		Statut = statut;
	}
      
       
      
}
